home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-02-13 | 5.3 KB | 218 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: FocusOwn.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- /*
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODFocusOwnerIterator_xh
- #define SOM_ODFocusOwnerIterator_xh
-
- class ODFocusOwnerIterator;
-
- #define ODFocusOwnerIterator_MajorVersion 1
- #define ODFocusOwnerIterator_MinorVersion 0
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_ODObject_xh
- #include <ODObject.xh>
- #endif
-
- #ifndef ODFocusOwnerIterator_API
- #define ODFocusOwnerIterator_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class ODFrame;
- class ODFacet;
- class ODObject;
- class ODExtension;
- class ODFocusOwnerIterator;
- class ODFocusModule;
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define ODFocusOwnerIteratorCClassData ODFocusOwnerIteratorClassData
- #define ODFocusOwnerIteratorNewClass(major,minor) somNewVersionedClassReference(ODFocusOwnerIterator,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define ODFocusOwnerIteratorMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the ODFocusOwnerIterator class object, and the methods it introduces. */
- SOMEXTERN struct ODFocusOwnerIteratorClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken InitFocusOwnerIterator;
- somMToken First;
- somMToken Next;
- somMToken IsNotComplete;
- } SOMDLINK ODFocusOwnerIteratorClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(ODFocusOwnerIterator_Class_Source) && !defined(SOM_Module_focusown_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list ODFocusOwnerIteratorClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for ODFocusOwnerIterator Method Procedures
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_ODFocusOwnerIterator_InitFocusOwnerIterator)(ODFocusOwnerIterator *somSelf, Environment *ev,
- ODTypeToken focus,
- ODFocusModule* focusModule);
- typedef ODFrame* (* SOMLINK somTD_ODFocusOwnerIterator_First)(ODFocusOwnerIterator *somSelf, Environment *ev);
- typedef ODFrame* (* SOMLINK somTD_ODFocusOwnerIterator_Next)(ODFocusOwnerIterator *somSelf, Environment *ev);
- typedef ODBoolean (* SOMLINK somTD_ODFocusOwnerIterator_IsNotComplete)(ODFocusOwnerIterator *somSelf, Environment *ev);
- }
-
- #endif /* ODFocusOwnerIterator_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODFocusOwnerIterator
- */
- class ODFocusOwnerIterator : public ODObject
- {
- public:
-
- // ODFocusOwnerIterator::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for ODFocusOwnerIterator, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(ODFocusOwnerIterator);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(ODFocusOwnerIterator);
- #endif
- }
-
- // ODFocusOwnerIterator::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: InitFocusOwnerIterator */
- void InitFocusOwnerIterator(Environment *ev,
- ODTypeToken focus,
- ODFocusModule* focusModule)
- {
- SOM_ResolveD(this,ODFocusOwnerIterator,ODFocusOwnerIterator,InitFocusOwnerIterator)
- (this,ev,focus,focusModule);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: First */
- ODFrame* First(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- ODFrame* __somResult =
- SOM_ResolveD(this,ODFocusOwnerIterator,ODFocusOwnerIterator,First)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODFocusOwnerIterator,ODFocusOwnerIterator,First)
- (this,ev);
- #endif
- }
-
- /* method: Next */
- ODFrame* Next(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- ODFrame* __somResult =
- SOM_ResolveD(this,ODFocusOwnerIterator,ODFocusOwnerIterator,Next)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODFocusOwnerIterator,ODFocusOwnerIterator,Next)
- (this,ev);
- #endif
- }
-
- /* method: IsNotComplete */
- ODBoolean IsNotComplete(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- ODBoolean __somResult =
- SOM_ResolveD(this,ODFocusOwnerIterator,ODFocusOwnerIterator,IsNotComplete)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODFocusOwnerIterator,ODFocusOwnerIterator,IsNotComplete)
- (this,ev);
- #endif
- }
-
- }; /* ODFocusOwnerIterator */
-
-
-
- #endif /* SOM_ODFocusOwnerIterator_xh */
-